package com.ardf.common;

import org.springframework.format.Printer;

/**
 * author:容伟洪
 * time:2025-2-24
 * description：用于前端控制器返回数据，状态码初始化定义
 */
public enum CodeEnum {
    SUCCESS("200", "成功"),

    PORT_WAS_OPEN("5001","串口已经打开"),

    PORT_WAS_CLOSE("5002","串口已经关闭"),

    PORT_WAS_NULL("5003","串口为空"),

    PRINTER_WAS_CLOSE("6001","打印机未连接");

    public String code;
    public String message;

    CodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
